package com.woniuxy.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 定义返回结果的格式的Bean
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultDto {

    public static ResultDto DELETE_DR_SUCCESS=new ResultDto(1002,"删除出行记录成功");
    public static ResultDto DELETE_DR_FAILURE=new ResultDto(-1002,"删除出行记录失败");
    public static ResultDto UPLOAD_FILE_FAILURE=new ResultDto(-1003,"增加图片失败");
    public static ResultDto DRVINGRECORD_EXITS=new ResultDto(-1004,"车辆已存在");
    public static ResultDto DRVINGRECORD_ADD_SUCCESS=new ResultDto(1005,"增加出行记录成功");
    public static ResultDto DRVINGRECORD_ADD_FAIL=new ResultDto(-1005,"增加出行记录失败");
    public static ResultDto DRVINGRECORD_UPDATE_SUCCESS=new ResultDto(1006,"修改出行记录成功");
    public static ResultDto DRVINGRECORD_UPDATE_FAIL=new ResultDto(-1006,"修改出行记录失败");
    public static ResultDto DELETE_REF_SUCCESS=new ResultDto(1007,"删除加油记录成功");
    public static ResultDto DELETE_REF_FAILURE=new ResultDto(-1007,"删除加油记录失败");
    public static ResultDto REF_ADD_SUCCESS=new ResultDto(1008,"增加加油记录成功");
    public static ResultDto REF_ADD_FAIL=new ResultDto(-1008,"增加加油记录失败");
    public static ResultDto REF_UPDATE_SUCCESS=new ResultDto(1009,"修改加油记录成功");
    public static ResultDto REF_UPDATE_FAIL=new ResultDto(-1009,"修改加油记录失败");
    public static ResultDto DELETE_REP_SUCCESS=new ResultDto(1010,"删除维修记录成功");
    public static ResultDto DELETE_REP_FAILURE=new ResultDto(-1010,"删除维修记录失败");
    public static ResultDto REP_ADD_SUCCESS=new ResultDto(1011,"增加维修记录成功");
    public static ResultDto REP_ADD_FAIL=new ResultDto(-1011,"增加维修记录失败");
    public static ResultDto REP_UPDATE_SUCCESS=new ResultDto(1012,"修改维修记录成功");
    public static ResultDto REP_UPDATE_FAIL=new ResultDto(-1012,"修改维修记录失败");
    public static ResultDto DELETE_FEE_SUCCESS=new ResultDto(1013,"删除规费记录成功");
    public static ResultDto DELETE_FEE_FAILURE=new ResultDto(-1013,"删除规费记录失败");
    public static ResultDto FEE_ADD_SUCCESS=new ResultDto(1014,"增加规费记录成功");
    public static ResultDto FEE_ADD_FAIL=new ResultDto(-1014,"增加规费记录失败");
    public static ResultDto FEE_UPDATE_SUCCESS=new ResultDto(1015,"修改规费记录成功");
    public static ResultDto FEE_UPDATE_FAIL=new ResultDto(-1015,"修改规费记录失败");
    public static ResultDto DELETE_MR_SUCCESS=new ResultDto(1016,"删除保养记录成功");
    public static ResultDto DELETE_MR_FAILURE=new ResultDto(-1016,"删除保养记录失败");
    public static ResultDto MR_ADD_SUCCESS=new ResultDto(1017,"增加保养记录成功");
    public static ResultDto MR_ADD_FAIL=new ResultDto(-1017,"增加保养记录失败");
    public static ResultDto MR_UPDATE_SUCCESS=new ResultDto(1018,"修改保养记录成功");
    public static ResultDto MR_UPDATE_FAIL=new ResultDto(-1018,"修改保养记录失败");

    public static ResultDto PECCANCY_RECORD_DELETE_SUCCESS=new ResultDto(2001,"删除违章记录成功");
    public static ResultDto PECCANCY_RECORD_DELETE_FAIL=new ResultDto(-2001,"删除违章记录失败");
    public static ResultDto PECCANCY_RECORD_ADD_SUCCESS=new ResultDto(2002,"添加违章记录成功");
    public static ResultDto PECCANCY_RECORD_ADD_FAIL=new ResultDto(-2002,"添加违章记录失败");
    public static ResultDto PECCANCY_RECORD_UPDATE_SUCCESS=new ResultDto(2003,"更新违章记录成功");
    public static ResultDto PECCANCY_RECORD_UPDATE_FAIL=new ResultDto(-2003,"更新违章记录失败");

    public static ResultDto ACCIDENT_RECORD_DELETE_SUCCESS=new ResultDto(2004,"删除事故记录成功");
    public static ResultDto ACCIDENT_RECORD_DELETE_FAIL=new ResultDto(-2004,"删除事故记录失败");
    public static ResultDto ACCIDENT_RECORD_ADD_SUCCESS=new ResultDto(2005,"添加事故记录成功");
    public static ResultDto ACCIDENT_RECORD_ADD_FAIL=new ResultDto(-2005,"添加事故记录失败");
    public static ResultDto ACCIDENT_RECORD_UPDATE_SUCCESS=new ResultDto(2006,"更新事故记录成功");
    public static ResultDto ACCIDENT_RECORD_UPDATE_FAIL=new ResultDto(-2006,"更新事故记录失败");

    public static ResultDto INSPECTION_RECORD_DELETE_SUCCESS=new ResultDto(2007,"删除年检记录成功");
    public static ResultDto INSPECTION_RECORD_DELETE_FAIL=new ResultDto(-2007,"删除年检记录失败");
    public static ResultDto INSPECTION_RECORD_ADD_SUCCESS=new ResultDto(2008,"添加年检记录成功");
    public static ResultDto INSPECTION_RECORD_ADD_FAIL=new ResultDto(-2008,"添加年检记录失败");
    public static ResultDto INSPECTION_RECORD_UPDATE_SUCCESS=new ResultDto(2009,"更新年检记录成功");
    public static ResultDto INSPECTION_RECORD_UPDATE_FAIL=new ResultDto(-2009,"更新年检记录失败");

    public static ResultDto INSURANCE_RECORD_DELETE_SUCCESS=new ResultDto(2010,"删除保险记录成功");
    public static ResultDto INSURANCE_RECORD_DELETE_FAIL=new ResultDto(-2010,"删除保险记录失败");
    public static ResultDto INSURANCE_RECORD_ADD_SUCCESS=new ResultDto(2011,"添加保险记录成功");
    public static ResultDto INSURANCE_RECORD_ADD_FAIL=new ResultDto(-2011,"添加保险记录失败");
    public static ResultDto INSURANCE_RECORD_UPDATE_SUCCESS=new ResultDto(2012,"更新保险记录成功");
    public static ResultDto INSURANCE_RECORD_UPDATE_FAIL=new ResultDto(-2012,"更新保险记录失败");

    public static ResultDto DRIVER_EXITS=new ResultDto(-3004,"驾驶员已存在");
    public static ResultDto DRIVER_ADD_SUCCESS=new ResultDto(3001,"成功增加驾驶员");
    public static ResultDto DRIVER_ADD_FAILURE=new ResultDto(-3001,"增加驾驶员失败");
    public static ResultDto DELETE_DRIVER_SUCCESS=new ResultDto(3002,"删除驾驶员成功");
    public static ResultDto DELETE_DRIVER_FAILURE=new ResultDto(-3002,"删除驾驶员失败");
    public static ResultDto UPDATE_DRIVER_SUCCESS=new ResultDto(3003,"修改驾驶员成功");
    public static ResultDto UPDATE_DRIVER_FAILURE=new ResultDto(-3003,"修改驾驶员失败");

    public static ResultDto CAR_EXITS=new ResultDto(-3005,"车辆已存在");
    public static ResultDto CAR_ADD_SUCCESS=new ResultDto(3006,"成功增加车辆");
    public static ResultDto CAR_ADD_FAILURE=new ResultDto(-3006,"增加车辆失败");
    public static ResultDto DELETE_CAR_SUCCESS=new ResultDto(3007,"删除车辆成功");
    public static ResultDto DELETE_CAR_FAILURE=new ResultDto(-3007,"删除车辆失败");
    public static ResultDto UPDATE_CAR_SUCCESS=new ResultDto(3008,"修改车辆成功");
    public static ResultDto UPDATE_CAR_FAILURE=new ResultDto(-3008,"修改车辆失败");
    public static ResultDto UPDATE_CAR_PIC_SUCCESS=new ResultDto(3013,"修改车辆图片成功");
    public static ResultDto UPDATE_CAR_PIC_FAILURE=new ResultDto(-3013,"修改车辆图片失败");

    public static ResultDto CURRENTUNIT_EXITS=new ResultDto(-3009,"往来单位已存在");
    public static ResultDto CURRENTUNIT_ADD_SUCCESS=new ResultDto(3010,"成功增加往来单位");
    public static ResultDto CURRENTUNIT_ADD_FAILURE=new ResultDto(-3010,"增加往来单位失败");
    public static ResultDto DELETE_CURRENTUNIT_SUCCESS=new ResultDto(3011,"删除往来单位成功");
    public static ResultDto DELETE_CURRENTUNIT_FAILURE=new ResultDto(-3011,"删除往来单位失败");
    public static ResultDto UPDATE_CURRENTUNIT_SUCCESS=new ResultDto(3012,"修改往来单位成功");
    public static ResultDto UPDATE_CURRENTUNIT_FAILURE=new ResultDto(-3012,"修改往来单位失败");

    public static ResultDto LOGIN_SUCCESS=new ResultDto(4001,"登录成功");
    public static ResultDto LOGIN_FAILED=new ResultDto(-4001,"登录失败");
    public static ResultDto DELETE_USER_SUCCESS=new ResultDto(4002,"用户删除成功");
    public static ResultDto DELETE_USER_FAILURE=new ResultDto(-4002,"用户删除失败");
    public static ResultDto USER_EXITS=new ResultDto(-4003,"用户已存在");
    public static ResultDto USER_ADD_SUCCESS=new ResultDto(4004,"用户增加成功");
    public static ResultDto USER_ADD_FAILURE=new ResultDto(-4004,"用户增加失败");
    public static ResultDto ROLE_GRANT_SUCCESS=new ResultDto(4005,"角色分配成功");
    public static ResultDto ROLE_GRANT_FAILURE=new ResultDto(-4005,"角色分配失败");
    public static ResultDto RIGHT_GRANT_SUCCESS=new ResultDto(4006,"权限分配成功");
    public static ResultDto RIGHT_GRANT_FAILURE=new ResultDto(-4006,"权限分配失败");
    public static ResultDto QUERY_SUCCESS=new ResultDto(4007,"查询成功");
    public static ResultDto QUERY_FAILURE=new ResultDto(-4007,"查询失败");
    public static ResultDto DIC_EXITS=new ResultDto(-4008,"字典名已存在");
    public static ResultDto DIC_ADD_SUCCESS=new ResultDto(4009,"字典增加成功");
    public static ResultDto DIC_ADD_FAILURE=new ResultDto(-4009,"字典增加失败");
    public static ResultDto PWD_MODIFY_SUCCESS=new ResultDto(4010,"密码修改成功,请重新登录");
    public static ResultDto PWD_MODIFY_FAILURE=new ResultDto(-4010,"密码修改失败");
    public static ResultDto USER_EDIE_SUCCESS=new ResultDto(4011,"用户修改成功");
    public static ResultDto USER_EDIE_FAILURE=new ResultDto(-4011,"用户修改失败");
    public static ResultDto OLD_PWD_ERROR=new ResultDto(-4012,"原密码输入有误");
    public static ResultDto OLD_AND_NEW_PWD_SAME=new ResultDto(-4013,"新密码与原密码相同，请重新输入");
    public static ResultDto ROLE_DELETE_SUCCESS=new ResultDto(4014,"角色删除成功");
    public static ResultDto ROLE_DELETE_FAILURE=new ResultDto(-4014,"角色删除失败");
    public static ResultDto DIC_EDIT_SUCCESS=new ResultDto(4015,"字典修改成功");
    public static ResultDto DIC_EDIT_FAILURE=new ResultDto(-4015,"字典修改失败");

    private int code;
    private String msg;
    private Object data;

    public ResultDto(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
